import { HTTP } from '../utils/http.js'

class Share extends HTTP {

    // 作品分享
    works_detail(objs) {
        return this.request({
        url: '/works/works_detail',
        method: 'POST',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }

    //作品列表
    works_list(objs) {
        return this.request({
        url: '/user_it_work/list',
        method: 'POST',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }
    //喜欢或取消喜欢
    like_this_work(objs) {
        return this.request({
        url: '/user_it_work/like_this_work',
        method: 'POST',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }
    
    

}

export { Share }